home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: non-blocking I/O on X.25
- Date: Fri, 01 Mar 96 22:08:12 GMT
- Organization: none
- Message-ID: <825718092snz@genesis.demon.co.uk>
- References: <raffelmDnLwIH.67@netcom.com>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <raffelmDnLwIH.67@netcom.com> raffelm@netcom.com "Matt Raffel" writes:
-
- >I have to write a program that will "put" and "get"
- >characters from X.25 connection. (In X.25 stdin and
- >stdout are redirected to the tty emulation--so
- >I can use printf, getchar, and fgetchar etc...)
-
- What you are describing here are some of the features of a particular
- X.25 implementation - not properties of X.25 in general. The key word
- here is probably 'tty' which suggests that you may be using a Unix system.
-
- >But, what I need to do is non-blocking. I never
- >have done non-blocking I/O. I have looked at the
- >FAQ, but the one I had did not contain any examples.
-
- The problem is that the C language has no support for non-blocking I/O; you
- have to use whatever support your particular OS provides. If you are using
- Unix TTYs then you use the Unix TTY control interface (termio/termios) to
- control them. However that is entirely Unix specific and the correct place
- to ask about it is in comp.unix.programmer.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-